
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" type="text/css" href="../../css/style.css" />
<link rel="stylesheet" type="text/css" href="../../css/demo.css" />
<script src="../../js/demo.js" type="text/javascript" charset="utf-8"></script>
<title>店铺设置</title>
</head>
<body>
	<!--header-->
	<div class="header">
		<div class="header-content">
			<ul class="nav left">
				<li><img src="../../img/regist-arrow.png" /></li>
				<li class="nav-one"><a href="javascript:history.go(-1);">返回</a></li>
				<li class="nav-two"><a href="../../">关闭</a></li>
			</ul>
			<p class="left">侨盟小店</p>
			<div class="right nav_right">
				<img src="../../img/regist-list.png" />
			</div>
		</div>
	</div>
	<!--main-->
	<div class="main clear" style="margin-bottom: 0.88rem;">
		<div class="shopprevew-content">
			<div class="shopprevew-contentlist">
				<img src="../../img/shopcouple-icon10.png" />
				<div class="contentlist-r right">
					<img src="../../img/shopcouple-icon11.png" /> <img
						src="../../img/shopcouple-icon12.png" />
				</div>
				<div class="contentlist-bottom ">
					<p class="left">侨盟店铺0000的小店</p>
					<img src="../../img/shopseting-icon16.png" class="right" id="foucs" onclick="addcollectNum()"/>
				</div>
			</div>
		</div>
		<div class="shopprevew-content2">
			<div class="shopprevew-contentlist2">
				<div class="shopprevew-greenpic">
					<img src="../../img/shopcouple-icon7.png" /> <span id="span1"><img
						src="../../img/shopdor-icon2.png" /><img
						src="../../img/shopdor-icon2.png" /><img
						src="../../img/shopdor-icon2.png" /><img
						src="../../img/shopdor-icon2.png" /><img
						src="../../img/shopdor-icon2.png" /></span>
				</div>
				<ul class="shopprevew-honeylist">
					<li class="honeylist-one" id="li1">122
						<p>全部宝贝</p>
					</li>
					<li class="honeylist-one" id="li2">20
						<p>上新</p>
					</li>
					<li class="honeylist-thr">福建省福州市
						<p>所在地区</p>
					</li>
					<li class="honeylist-fou"><img
						src="../../img/shopcouple-icon8.png" /></li>
				</ul>
			</div>
		</div>
		<div class="shopmanage-line3">
			<img src="../../img/shopmanage-line2.png" style="margin-top: -0.2rem;" />
		</div>
		<div class="static-headimg">
			<img src="../../imgs/shopcouple-icon13.png" />
		</div>
		<div class="shopprevew-content3">
			<div class="shopprevew-contentlist3">
				<div class="contentlist3-title">
					<img src="../../img/shopcouple-icon.png" /> <span>热卖商品(122)</span> <img
						src="../../img/shopcouple-icon.png" />
				</div>
				<div class="contentlist3-left left">
					<img src="../../imgs/shopcouple-pic.png" />
					<p>初新生婴儿小床便携式bb床围床上床可折叠宝宝睡床...</p>
					<p class="contentlist3-money left">￥68.0</p>
					<p class="contentlist3-dmoney left">￥168.0</p>
					<img src="../../img/shopcouple-icon2.png" class="right"
						style="width: 0.52rem; height: 0.26rem; margin-top: 0.22rem;" />
				</div>
				<div class="contentlist3-right right">
					<img src="../../imgs/shopcouple-pic2.jpg" />
					<p>初新生婴儿小床便携式bb床围床上床可折叠宝宝睡床...</p>
					<p class="contentlist3-money left">￥68.0</p>
					<p class="contentlist3-dmoney left">￥168.0</p>
					<img src="../../img/shopcouple-icon2.png" class="right"
						style="width: 0.52rem; height: 0.26rem; margin-top: 0.22rem;" />
				</div>
			</div>
		</div>
	</div>
	<div class="footer">
		<ul class="nav-foot">
			<li><a href="../../" class="active"><img
					src="../../img/shopcouple-icon3.png"
					style="width: 0.44rem; height: 0.42rem; margin-left: 0.08rem;" />
					<br /> <span>首页</span> </a></li>
			<li><a href="javascript:;"><img
					src="../../img/shopcouple-icon4.png"
					style="width: 0.37rem; height: 0.42rem;" /> <br /> <span>成为合伙人</span>
			</a></li>
			<li><a href="../../html/shopcar/shopcar-purchase.html"><img
					src="../../img/shopcouple-icon5.png"
					style="width: 0.42rem; height: 0.42rem;" /> <br /> <span>购物车</span>
			</a></li>
			<li><a href="../../html/selfcenter/distribution.html"><img
					src="../../img/shopcouple-icon6.png"
					style="width: 0.4rem; height: 0.42rem; margin-left: 0.08rem;" /> <br />
					<span>我的</span> </a></li>
		</ul>
	</div>
	<script src="../../js/jquery-3.2.1.min.js" type="text/javascript"
		charset="utf-8"></script>
	<script type="text/javascript">
		//显示相应的shop信息,需要shop_good中的goodDesc,,goodUrl,price,
		//和shop中的shopName,shopUrl,level,cityName,provinceName,所有的good数量，上架的新品的数量
		var search = location.search.substr(1);
		showShopInfo(search);
		function showShopInfo(dataStr) {
			$
					.ajax({
						type : "post",
						url : "/qiaomengapp/shop/showGoodInfo",
						data:"shopId="+dataStr,
						//data传递的参数需要shop_id
						success : function(data) {
							//显示店铺名
							$('p[class="left"]').html(data.warp.shopName);
							//显示level等级
							var b = "<img src='../../img/shopseting-icon10.png' class='hongxing'/>";
							var a = "";
							for (var i = 1; i <= data.warp.shopLevel; i++) {
								a += b;
								$('#span1').html(a);
							}
							//显示全部宝贝
							
							$('#li1').html(data.goodNum+"<p>全部宝贝</p>");
							//显示上新
							$('#li2').html(data.k+"<p>上新</p>");
							//显示商铺的省市地址
							$('.honeylist-thr').html(data.warp.provinceName+data.warp.cityName+"<p>所在地区</p>")
							//显示两个热卖商品			
							$('.contentlist3-left').html("<a href='../../html/product/productlist.html?"+data.good[0].id+"'><img src='"+data.good[0].goodImgurl+"' />"
									+"<p>"+data.good[0].goodDesc+"</p>"
									+"<p class='contentlist3-money left'>￥"+data.good[0].price*0.55+"</p>"
									+"<p class='contentlist3-dmoney left'>￥"+data.good[0].price+"</p>"
									+"<img src='../../img/shopcouple-icon2.png' class='right' " 
									+"style='width: 0.52rem; height: 0.26rem; margin-top: 0.22rem;' /></a>"
									)
							$('.contentlist3-right').html("<a href='../../html/product/productlist.html?"+data.good[4].id+"'><img src='"+data.good[4].goodImgurl+"' /></a>"
									+"<p>"+data.good[4].goodDesc+"</p>"
									+"<p class='contentlist3-money left'>￥"+data.good[4].price*0.55+"</p>"
									+"<p class='contentlist3-dmoney left'>￥"+data.good[4].price+"</p>"
									+"<img src='../../img/shopcouple-icon2.png' class='right' " 
									+"style='width: 0.52rem; height: 0.26rem; margin-top: 0.22rem;' />"
									)
						}
					});
		}
		
		<!-- //点击关注 -->
		function addcollectNum(){
					$.ajax({
					type:"POST",
					url:"/qiaomengapp/shopGood/addcollectNum",
					//需要参数user_id，shop_id
					data:"shopId="+search,
					success:function(){
						alert('关注成功');
					}
				});
				}
		
		
	</script>


</body>
</html>